import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // 首页
  {
    path: '/',
    name: 'course',
    component: () => import(/* webpackChunkName: 'course' */'@/views/course/index.vue')
  },
  {
    path: '/report',
    name: 'report',
    component: () => import(/* webpackChunkName: 'course' */'@/views/course/report.vue')
  },
  {
    path: '/success',
    name: 'success',
    component: () => import(/* webpackChunkName: 'course' */'@/views/course/success.vue')
  },
  {
    path: '/mother',
    name: 'mother',
    component: () => import(/* webpackChunkName: 'course' */'@/views/mother/index.vue')
  },
  {
    path: '/mother/home',
    name: 'mother_home',
    component: () => import(/* webpackChunkName: 'course' */'@/views/mother/home.vue')
  },
  {
    path: '/mother/list',
    name: 'mother_list',
    component: () => import(/* webpackChunkName: 'course' */'@/views/mother/list.vue')
  },
  {
    path: '/mother/report',
    name: 'mother_report',
    component: () => import(/* webpackChunkName: 'course' */'@/views/mother/report.vue')
  },
  {
    path: '/mother/success',
    name: 'mother_success',
    component: () => import(/* webpackChunkName: 'course' */'@/views/mother/success.vue')
  },
  {
    path: '*',
    name: 'error-page',
    component: () => import(/* webpackChunkName: 'error-page' */'@/views/error-page/index')
  }
]

const router = new VueRouter({
  routes
})

export default router
